﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="ConvidarEntrevista.aspx.cs" Inherits="_ConvidarEntrevista" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <style type="text/css">
    #tabela 
    {
       font: 18px tahoma, arial;
    }
  
    input[type=text], textarea
    {
        padding: 5px;
        font: 18px tahoma, arial;
    }
    span 
    {
        font-size:12px;
    }
    </style>



    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">muda(candidato, '#0C5C7E');</script>

<h1 style="margin-top:10px; margin-bottom:4px;">Convidar para Entrevista</h1>
<table style="width:100%;">
    <tr>
        <td colspan="2">
            <asp:HiddenField ID="hfCPF" runat="server" /><asp:HiddenField ID="hfCod" runat="server" />
            <asp:HiddenField ID="hfEmail" runat="server" />
        </td>
    </tr>
</table>
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>

<table style="width:100%" id="tabela" cellpadding="4" cellspacing="4">
    <tr>
        <td>
            Ocupação:</td>
        <td align="left">
            <asp:DropDownList ID="ddlOcupacao" AutoPostBack="true" runat="server" AppendDataBoundItems="true" Height="35px" Font-Bold="true" OnSelectedIndexChanged="ddlOcupacao_SelectedIndexChanged">
                <asp:ListItem Text="" Value="-1"></asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td style="line-height:15px;">
            Empresa:   
        </td>
        <td align="left">
            <asp:TextBox ID="txtEmpresa" runat="server" MaxLength="100" Width="372px" Enabled="false"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Data:</td>
        <td align="left">
            <asp:TextBox ID="txtData" runat="server" MaxLength="10" Width="100px"></asp:TextBox><span style="font-size:small">(dd/mm/aaaa)</span>
        </td>
    </tr>
    <tr>
        <td>
            Horário:
        </td>
        <td align="left">
            <asp:TextBox ID="txtHora" runat="server" MaxLength="20" Width="100px"></asp:TextBox><span style="font-size:small">(hh:mm)</span>
        </td>
    </tr>
    <tr>
        <td>
            Local:
        </td>
        <td align="left">
            <asp:TextBox ID="txtLocal" runat="server" Rows="4" TextMode="MultiLine" Width="372px" Enabled="false"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Contato:</td>
        <td align="left">
            <asp:TextBox ID="txtContato" runat="server" MaxLength="50" Width="372px" Enabled="false"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Email:</td>
        <td align="left">
            <asp:TextBox ID="txtEmail" runat="server" MaxLength="30" Width="372px" Enabled="false"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            Telefone:</td>
        <td align="left">
            <asp:TextBox ID="txtTelefone" runat="server" MaxLength="20" Width="200px" Enabled="false"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td align="left">
            <asp:CheckBox ID="cbEnviarCopia" runat="server" Font-Size="Small" 
                Text=" Enviar cópia do convite para o email da empresa" />
        </td>
    </tr>
    <tr>
    </tr>
    <tr>
        <td>
            &nbsp;</td>
        <td align="right">
            <asp:ImageButton ID="btnConvidarParaEntrevista" runat="server" 
                ImageUrl="../figuras/bConvidarEntrevista.gif" 
                onclick="btnEncaminharCurriculo_Click" />
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                <ProgressTemplate>
                    <table style="width:100%;" cellpadding="0">
                        <tr>
                            <td>
                                <img alt="..." src="../../tiny_red.gif" style="width: 10px; height: 10px" /></td>
                                <td>
                                    Aguarde, convidando para entrevista...
                                </td>
                        </tr>
                    </table>
                </ProgressTemplate>
            </asp:UpdateProgress>
        </td>
    </tr>
    <tr>
        <td colspan="2">
                    <asp:RequiredFieldValidator ID="RV1" runat="server" 
                ControlToValidate="txtData" Display="None" 
                        ErrorMessage="Informe a data da entrevista"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RV2" runat="server" ControlToValidate="txtHora" 
                        Display="None" ErrorMessage="Informe a hora da entrevista"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RV3" runat="server" 
                        ControlToValidate="txtLocal" Display="None" 
                        ErrorMessage="Informe o local da entrevista"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RV4" runat="server" 
                        ControlToValidate="txtContato" Display="None" ErrorMessage="Informe o contato"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RV5" runat="server" 
                        ControlToValidate="txtTelefone" Display="None" 
                        ErrorMessage="Informe o telefone para contato"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator ID="RV6" runat="server" 
                        ControlToValidate="txtEmail" Display="None" ErrorMessage="Informe o email"></asp:RequiredFieldValidator>
                    <asp:RequiredFieldValidator InitialValue="-1" ID="RV7" Display="None" runat="server" ControlToValidate="ddlOcupacao" ErrorMessage="Escolha uma Ocupação"/>
                    <asp:CompareValidator ID="CV1" runat="server" ControlToValidate="txtData" 
                        Display="None" ErrorMessage="Data inválida" Operator="DataTypeCheck" 
                        Type="Date"></asp:CompareValidator>
                    <asp:CompareValidator ID="CV2" runat="server" ControlToValidate="txtData" 
                        Display="None" 
                        ErrorMessage="A data da entrevista não pode ser menor que hoje" Operator="GreaterThanEqual" 
                        Type="Date"></asp:CompareValidator>
                    <asp:RegularExpressionValidator ID="REV1" runat="server" 
                        ControlToValidate="txtEmail" Display="None" ErrorMessage="Email inválido" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" />

        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">
            <asp:ImageButton ID="btnVoltar" runat="server" CausesValidation="false" 
                ImageUrl="../figuras/bVoltar.gif" onclick="btnVoltar_Click" /></td>
    </tr>
    </table>
</ContentTemplate>
</asp:UpdatePanel>    
</asp:Content>

